package cn.santi.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@TableName(value ="j_user")
@Data
public class User {
    /**
     * 用户id
     */
    @TableId(value = "uid", type = IdType.AUTO)
    private Integer uid;

    /**
     * 用户名称
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 电话号码
     */
    @TableField(value = "phomenumber")
    private String phomenumber;

    /**
     * 微信小程序唯一标识符
     */
    @TableField(value = "openid")
    private String openid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 用户注册时间
     */
    @TableField(value = "time")
    private String time;
    /**
     * 用户状态 1/禁用 0启用
     */
    @TableField(value = "state")
    private int state;
}
